import request from "@/utils/request";
import {Base64} from "js-base64";


/**
 * 查表数据
 */
export function getTableRecordSqlserver(data){
    return request({
        url:'/sop/grouplink/getTableRecordSqlserver',
        method: 'post',
        data: data
    })
}



/**
 * 直接通过sql语句进行查询
 * @param dbType 数据库类型
 * @param sql sql语句
 *
 */
export function getDecodeData(dbType, sql){
    let baseSql = Base64.encode(sql)
    let data = {baseSql:baseSql, database:dbType}
    return request({
        url: '/sop/api/Function/getDecodeData',
        method: 'post',
        data: data
    })
}



